﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NewsUC.ascx.cs" Inherits="VCN.home.UC.NewsUC" %>
<%@ Import Namespace="VCN.App.DataAccessLayer" %>
<style type="text/css">
    .clearfix
    {
        display: block;
        width: 100%;
        margin: 15px 0 5px;
        clear: both;
        height:120px;
    }
    .clearfix .img-thumb
    {
        border: 1px solid #d8d8d8;
        float: left;
        margin-right: 5px;
        padding: 2px;
        width: 110px;
        height:110px;
    }
    .clearfix .icon-detail
    {
        display: block;
        padding: 5px;
        text-align: right;
    }
    .BoxlinkPage
    {
        margin-top: 5px;
        float: right;
    }
    .linkPage{}
    .lblinfo
    {
    	margin:108px;
    	color:#87C927;
    	font-size:20px;
    }
</style>
<%
    NewsDAO objNewsdao=new NewsDAO();
    System.Data.DataTable v_dt_list = objNewsdao.SellectNewsTop(); 
    foreach (System.Data.DataRow item in v_dt_list.Rows)
    {
%>
<div class="clearfix">
    <% Response.Write(string.Format("<a title={0} href='{1}'><img src='{2}' class='img-thumb' alt='{3}' /></a>",
       item["Title"], standardLink(item["Id"], item["Title"]), "/home/images/news/" + item["Image"], "Image Thumb" + item["Title"]));
    %>
    <div class="short-content">
        <%Response.Write(string.Format("<a href='{0}'>{1}</a><div>{2}</div><a href='{3}' class='icon-detail'>Xem tiếp</a>",
           standardLink(item["Id"], item["Title"]), item["Title"], item["ShortContent"], standardLink(item["Id"].ToString(), item["Title"]))); %>
    </div>
</div>
<%} %>